<div class="row">
  <div class="col-lg-4 offset-lg-4">
    <h2 class="text-center">Reset your password</h2>
    <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
      <%= render "devise/shared/error_messages", resource: resource %>
      <p class="text-center">Enter your email address below and we will send you a link to reset your password.</p>

      <div class="mb-3">
        <%= f.email_field :email, autofocus: true, placeholder: 'Email address', class: 'form-control' %>
      </div>

      <div class="mb-3 d-grid">
        <%= f.submit "Send password reset email", class: 'btn btn-primary btn-lg' %>
      </div>
    <% end %>
    <div class="text-center">
      <%= render "devise/shared/links" %>
    </div>
  </div>
</div>
